/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.soc.cs5226.gui.entities;

import edu.soc.cs5226.gui.entities.util.Constants;
import java.sql.Timestamp;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author huijia
 */
@ManagedBean
public class RedoLogBuffer implements DBParameter {
    private Timestamp dateTime;
    private long redoLogSpaceRequest = 0;
    private String lb_healthStatus;
    
    public String getActualTime() {
        return Constants.DATEFORMAT.format(dateTime.getTime());
    }
    
    public Timestamp getdateTime() {
        return dateTime;
    }

    public void setdateTime(Timestamp dateTime) {
        this.dateTime = dateTime;
    }

    public String getLb_healthStatus() {
        return lb_healthStatus;
    }

    public void setLb_healthStatus(String lb_healthStatus) {
        this.lb_healthStatus = Constants.convertStatus(lb_healthStatus);
    }

    public long getRedoLogSpaceRequest() {
        return redoLogSpaceRequest;
    }

    public void setRedoLogSpaceRequest(long redoLogSpaceRequest) {
        this.redoLogSpaceRequest = redoLogSpaceRequest;
    }
}
